FROM centos

RUN yum install -y java-1.8.0-openjdk unzip
COPY rocketmq-all-4.8.0-bin-release.zip .
RUN unzip rocketmq-all-4.8.0-bin-release.zip && \
	mv rocketmq-all-4.8.0-bin-release /opt && \
	ln -s /opt/rocketmq-all-4.8.0-bin-release /opt/rocketmq && \
	rm rocketmq-all-4.8.0-bin-release.zip 
RUN yum clean all
COPY entrypoint.sh /

ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
	



